package scanner;
import java.util.Scanner;
public class Demo3 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
            double sum=0;
            int m=0;
            while(scanner.hasNextDouble()){
                double x= scanner.nextDouble();
                m++;
                sum=sum+x;
                System.out.println("你输入了第"+m+"数字,sum="+sum);
            }
        scanner.close();
    }
}
